<?php
namespace App\Services\Com;
use App\Models\Common\HotSearch;

/**
 * Created by PhpStorm.
 * User: yzy
 * Date: 2019/6/26
 * Time: 19:57
 */
class HotSearchService
{
    public static function add($data){
        $hotSearch = new HotSearch();
        $hotSearch->place = $data['place'];
        $hotSearch->keywords = $data['keywords'];
        $hotSearch->client_ip = $data['client_ip'];
        $hotSearch->times = date('Y-m-d H:i:s');
        $hotSearch->member_id = $data['member_id'];

        $hotSearch->save();
    }
}